package com.dkd.sbtz.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 工单附件对象 asset_order_attachment
 * 
 * @author xzj
 * @date 2025-09-18
 */
@Alias("AssetOrderAttachment")
@Data
public class AssetOrderAttachment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 工单ID */
    @Excel(name = "工单ID")
    private Long orderId;

    /** 文件名 */
    @Excel(name = "文件名")
    private String fileName;

    /** MIME类型 */
    @Excel(name = "MIME类型")
    private String fileType;

    /** 访问URL/相对存储路径 */
    @Excel(name = "访问URL/相对存储路径")
    private String fileUrl;

    /** 字节大小 */
    @Excel(name = "字节大小")
    private Long fileSize;

    /** 相对路径(文件夹上传时保留结构) */
    @Excel(name = "相对路径(文件夹上传时保留结构)")
    private String relativePath;

    /** 上传人 */
    @Excel(name = "上传人")
    private String uploader;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadTime;
}
